{#**
*
* 功能描述（页眉模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="Keywords" content="梵地蛋糕" />
        <meta name="Description" content="蛋糕网 - 最好吃的蛋糕" />
        <meta name="Description" content="所有原材料纯天然，不含任何添加剂及防腐剂" />
        <meta name="Description" content="进口原材料，欧洲风味" />
        <meta name="baidu-site-verification" content="OQS41KRow6" />
        <meta name="google-site-verification" content="d6Z9-stxO9QSwjruOAoiNX0QEWch2fn2jKq_BtRhg9E" />

        {#if $refUrl|default:false #}
            <meta http-equiv="refresh" content="500;URL={#$refUrl#}">

            {#/if#}
            <title>{#$title#} - 纯天然的蛋糕，最高贵的享受 － 24小时在线预定，6小时限时送达</title>
            <link rel="shortcut icon" href="images/favicon.ico" />
            <link rel="icon" href="images/animated_favicon.gif" type="image/gif" />
            <link href="css/style.css" rel="stylesheet" type="text/css" />
            <link href="css/wbox.css" rel="stylesheet" type="text/css" />

            <script type="text/javascript">
                var process_request = "正在处理您的请求...";
            </script>
            <script type="text/javascript" src="js/transport_jquery.js"></script>
            <script type="text/javascript" src="js/utils.js"></script>
            <script type="text/javascript" src="js/user.js"></script>
            <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
            <script src="js/raojinpg.js" type="text/javascript"></script>

            <script src="js/wbox.js" type="text/javascript"></script>
            <script type="text/javascript">
                $(document).ready(function() {

                });
            </script>
            <script type="text/javascript">
                function checkSearchForm()
                {
                    var keyword = document.getElementById('keyword').value;
                    if (keyword == '')
                    {
                        alert('请输入要搜索的产品名称');
                        return false;
                    }
                    else {
                        return true;
                    }
                }
            </script>

            <script type="text/javascript" src="js/common.js"></script>
            {#if $curJs|default:false #}
                <script type="text/javascript" src="js/{#$curJs#}.js"></script>
            {#/if#}
            <script type="text/javascript">
				if (!window.console)
					window.console = {};
                window.onerror = function(errorMessage, scriptURL, lineNumber)
                {
					if(lineNumber > 0)
						alert("JS脚本出错\n" + errorMessage + "\n" + scriptURL + " 第" + lineNumber + "行")
                    return false;
                }
            </script>
    </head>

    <body>

        <div id="header">
            <div class="block clearfix" id="head">
                <div class="head_top_help">
                    <font id="insert_member_info">
                        <a href="index.php?action=vipnews.index" target="_blank">免费品尝</a>
                        <a href="index.php?action=guide.buy" target="_blank">如何订购</a>
                        <a href="index.php?action=guide.getgoods" target="_blank">如何收货</a>
                        <a href="index.php?action=guide.pay" target="_blank">如何结账</a>
                    </font>
                </div>
                <div class="header_bg">
                    <div class="header_logo"></div>
                    <!--<img src="images/header_logo.png" />-->
                </div>
                <!--<a href="index.php" name="top"><img src="images/header.jpg" /></a>-->
                <div class="head_top">
                    <font class="header_title">梵地蛋糕</font>
                    <font id="insert_member_info">
                        <div id="append_parent"></div>
                        <!--<a href="{#$web_root['adm']#}" target="_blank">临时管理系统</a>-->
                        {#if $username|default:false #}
                            <a href="index.php?action=user.index">{#$username#}{#if $com_name != ''#}@{#$com_name#}{#/if#}</a> 欢迎光临  <a href="index.php?action=order.showlist">[我的订单]</a>
                            <a href="index.php?action=user.logout">[退出]</a>
                            <a href="index.php?action=user.index" class="yellow" >我的账户</a>
                            <a href="index.php?action=user.charge" class="yellow">会员充值</a>
                        {#else#}
                            <a href="#" class="dc_login">登录</a> <a href="#" class="dc_register">注册</a>
                        {#/if#}
                            <a href="index.php?action=cart.index" title="查看购物车" class="black">购物车({#$cartCnt#})</a>
                    </font>
                </div>
            </div>

            <div id="menu">
                <ul>
                    
                    {#foreach $mainMenu as $key => $item #}
                        <li><a class="link{#$key#}" href="{#$item[0]#}" >{#$item[1]#}</a></li>
                        {#/foreach#}
                </ul>
            </div>

            <div class="smenu">
                <ul>
                    <li>
                        {#foreach $sndMenu[0] as $key => $item #}
                            {#if $key != 0#}|{#/if#}
                            <a href="{#$item[0]#}"><span>{#$item[1]#}</span></a>
                                {#/foreach#}
                    </li>
                    <li>
                        {#foreach $sndMenu[1] as $key => $item #}
                            {#if $key != 0#}|{#/if#}
                            <a href="{#$item[0]#}"><span>{#$item[1]#}</span></a>
                                {#/foreach#}
                    </li>
                    <li style="text-align:left;padding-left:240px;">
                        {#foreach $sndMenu[2] as $key => $item #}
                            {#if $key != 0#}|{#/if#}
                            <a href="{#$item[0]#}"><span>{#$item[1]#}</span></a>
                                {#/foreach#}
                    </li>
                    <li style="text-align:right;">
                        {#foreach $sndMenu[3] as $key => $item #}
                            {#if $key != 0#}|{#/if#}
                            <a href="{#$item[0]#}"><span>{#$item[1]#}</span></a>
                                {#/foreach#}
                    </li>
                    <li style="text-align:right;">
                        {#foreach $sndMenu[4] as $key => $item #}
                            {#if $key != 0#}|{#/if#}
                            <a href="{#$item[0]#}"><span>{#$item[1]#}</span></a>
                                {#/foreach#}
                    </li>
                    <li style="text-align:right;">
                        {#foreach $sndMenu[5] as $key => $item #}
                            {#if $key != 0#}|{#/if#}
                            <a href="{#$item[0]#}"><span>{#$item[1]#}</span></a>
                                {#/foreach#}
                    </li>
                </ul>

                <script>
                                    $("a", $("li", $("#menu")).get({#$menuIdx#})).attr("class", "cur");
                                    $($("li", $(".smenu")).get({#$menuIdx#})).show();
                                    $($("li", $("#menu")).get({#$menuIdx#})).attr("rel", "act");
                </script>
                <div style="bottom: 0; margin: 0 31px 0 34px; position: absolute; width: 932px; height: 1px; background-color: #F39262;" ></div>
            </div>
        </div>
        <div style="height: 34px;" ></div> 
